package designPattern.action11.Strategy.chapter7_stractoy.chapter7_2;

public class StrategyOne implements ComputableStrategy {
    public double computeScore(double[] a) {
        double score = 0, sum = 0;
        for (int i = 0; i < a.length; i++) {
            sum = sum + a[i];
        }
        score = sum / a.length;
        return score;
    }
}